<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>智能进出口服务平台</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/jquery-ui.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <style type="text/css">
        .layui-table[lay-size=sm] tbody td{padding: 0px;}
        .layui-table[lay-size=sm] tbody td input{border: 0px;}
        .layui-card-body .layui-table{margin: 0px;}
        .tabBody{overflow-y: auto;max-height: 310px;}
        .layui-form-radio{margin: 0px;}
    </style>
</head>
<body>
<div class="tsf-page-content" style="padding: 0px;">
    <div class="layui-card">
        <form class="layui-form" method="post" lay-filter="inboundMainForm" id="inboundMainForm">
            <input type="hidden" name="id" id="id"/>
            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>基础信息</span></div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-md4">
                        <label class="layui-form-label"><span class="text-danger">*</span>系统单号</label>
                        <div class="layui-input-block">
                            <input name="docNo" id="docNo" class="layui-input required" maxlength="20" placeholder="订单号" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label"><span class="text-danger">*</span>入库日期</label>
                        <div class="layui-input-block">
                            <input type="text" name="receivingDate" id="receivingDate" class="layui-input picker-time required" placeholder="入库日期" clear-val/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md4">
                        <label class="layui-form-label"><span class="text-danger">*</span>入库仓库</label>
                        <div class="layui-input-block">
                            <select lay-filter="warehouseId" id="warehouseId" name="warehouseId" class="required sel-load" lay-verify="required" sel-url="scm/warehouse/allList?warehouseType=overseas" sel-key="id" sel-val="name"></select>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label"><span class="text-danger">*</span>客户</label>
                        <div class="layui-input-block">
                            <input name="customerName" id="customerName" class="layui-input auto-customer required" placeholder="客户" clear-val/>
                            <input type="hidden" name="customerId" id="customerId"/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-xs4">
                        <label class="layui-form-label"><span class="text-danger">*</span>币制</label>
                        <div class="layui-input-block">
                            <input name="currencyName" id="currencyName" class="layui-input auto-currency required" placeholder="币制" value="美元" clear-val/>
                            <input type="hidden" name="currencyId" id="currencyId" value="USD"/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md12">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <textarea placeholder="备注" id="memo" name="memo" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </form>

        <form class="layui-form" method="post" lay-filter="inboundMemberForm" id="inboundMemberForm">
            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>明细信息</span></div>
            <div class="layui-card-body">
                <blockquote class="layui-elem-quote">
                    <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" id="importExcel"><i class="layui-icon"></i>点击导入入库明细</button>
                    <a href="/importTemp/wms/wmsReceivingNoteMemberImportTemp.xls" target="_blank" class="def-a">点击下载导入模板</a>
                </blockquote>
                <div id="tabContainer" style="overflow-x: auto">
                    <div style="min-width: 1400px;">
                        <table class="layui-table" lay-size="sm">
                            <colgroup>
                                <col width="45">
                                <col width="150">
                                <col width="130">
                                <col width="130">
                                <col width="80">
                                <col width="80">
                                <col width="80">
                                <col width="90">
                                <col width="80">
                                <col width="80">
                                <col width="90">
                                <col width="90">
                                <col>
                                <col width="45">
                            </colgroup>
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>型号</th>
                                <th>品名</th>
                                <th>品牌</th>
                                <th>单位</th>
                                <th>数量</th>
                                <th>单价</th>
                                <th>总价</th>
                                <th>箱数</th>
                                <th>箱号</th>
                                <th>净重(KG)</th>
                                <th>毛重(KG)</th>
                                <th>批次号</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                        </table>
                        <div class="tabBody">
                            <table class="layui-table" lay-size="sm">
                                <colgroup>
                                    <col width="45">
                                    <col width="150">
                                    <col width="130">
                                    <col width="130">
                                    <col width="80">
                                    <col width="80">
                                    <col width="80">
                                    <col width="90">
                                    <col width="80">
                                    <col width="80">
                                    <col width="90">
                                    <col width="90">
                                    <col>
                                    <col width="45">
                                </colgroup>
                                <tbody id="memberBody">

                                </tbody>
                            </table>
                        </div>
                        <table class="layui-table" lay-size="sm">
                            <tfoot>
                            <tr>
                                <th>
                                    <div style="padding:2px">
                                        <a href="javascript:void(0)" class="btn btn-default addrow-btn"><i class="fa fa-plus"></i>添加一行</a>
                                    </div>
                                </th>
                            </tr>
                            <tr>
                                <th>
                                    <div class="layui-row">
                                        <div class="layui-col-md2">
                                            总数量：<h2 style="display: inline-block" id="quantityTotal">0.0</h2>
                                        </div>
                                        <div class="layui-col-md2">
                                            总箱数：<h2 style="display: inline-block" id="cartonTotal">0</h2>
                                        </div>
                                        <div class="layui-col-md2">
                                            总净重：<h2 style="display: inline-block" id="netWeightTotal">0.0000</h2>
                                        </div>
                                        <div class="layui-col-md2">
                                            总毛重：<h2 style="display: inline-block" id="grossWeightTotal">0.0000</h2>
                                        </div>
                                    </div>
                                </th>
                            </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="tsf-page-btn-group">
    <button type="button" class="layui-btn layui-btn-sm layui-btn-normal save-btn"><i class="fa fa-save"></i>保存</button>
    <button type="button" class="layui-btn layui-btn-primary layui-btn-sm close-window"><i class="fa fa-close"></i>关闭</button>
</div>

<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js?v=202001010101"></script>
<script type="text/javascript" src="/My97DatePicker/WdatePicker.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/js/sel-load.js?v=202001010101"></script>
<script type="text/javascript" src="/js/autocomplete.js?v=202001010101"></script>
<script type="text/javascript" src="/upload/file-config.js?v=202001010101"></script>
<script type="text/javascript" src="/upload/file.js?v=202001010101"></script>
<script type="text/javascript" src="/wms/inbound/add.js?v=202001010101"></script>
</body>
</html>